package com.teacher.service;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.goodthingstask.GoodThingsAddDto;
import com.teacher.pojo.dto.goodthingstask.GoodThingsUpdateDto;
import com.teacher.pojo.entity.GoodThingsTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.goodthingstask.GoodThingsGetVo;

/**
 * <p>
 * 好人好事-一条1分 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-11
 */
public interface IGoodThingsTaskService extends IService<GoodThingsTask> {

    /**
     * 发起好人好事
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(GoodThingsAddDto dto);

    /**
     * 更新流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> updateInfo(GoodThingsUpdateDto dto);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    CommonResult<GoodThingsGetVo> getDetails(Long id);
}
